package main

import (
	"fmt"
)

type Phone interface {
	call()
	say()
}

type Iphone struct {
}

func (iphone Iphone) call() {
	fmt.Println("Hello，i'm Iphone...")
}

//func (iphone Iphone) say(){
//	fmt.Println("iphone:say hello")
//}

type Android struct {
}

func (android Android) call() {
	fmt.Println("Hello,i'm Android...")
}

func main() {
	var iphone Phone
	var android Phone

	iphone = new(Iphone)
	iphone.call()

	android = new(Android)
	android.call()
}
